<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
  <script>
    var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
    for(let i = 0; i < array.length; i++) {
      array[i] = Math.pow(array[i], 2);
    }
  </script>

  <script>
    class Person {
      constructor(firstName, lastName, ssn) {
        this._firstName = firstName
        this._lastName = lastName
        this._ssn = ssn
        this._address = null
        this._birthYear = null
      }

      get ssn() {
        return this._ssn
      }

      get firstName() {
        return this._firstName
      }

      get lastName() {
        return this._lastName
      }

      get address() {
        return this._address
      }

      get birthYear() {
        return this._birthYear
      }

      set birthYear(year) {
        this._birthYear = year
      }

      get address() {
        return this._address
      }

      set address(address) {
        this._address = address
      }

      toString() {
        return `Person (${this._firstName}, ${this._lastName})`
      }
    }

    class Student extends Person {
      constructor(firstName, lastName, ssn, school) {
        super(firstName, lastName, ssn)
        this._school = school
      }

      get school() {
        return this._school
      }
    }
  </script>
</body>
</html>